
<div class="modal-body">
		<table class="table table-striped table-bordered table-hover table-condensed">
            <tr>
                <th width="20%">创建者：</th>
                <td  colspan="2">
                   {$li.user_id}
                </td>
            </tr>
            <tr>
                <th width="20%">项目名称：</th>
                <td  colspan="2">
                   {$li.p_name}
                </td>
            </tr>
            <tr>
                <th width="20%">项目类型：</th>
                <td  colspan="2">
                    {$li.p_type}
                </td>
            </tr>
            <tr>
                <th width="20%">项目预算：</th>
                <td  colspan="2">
                   {$li.p_price}
                </td>
            </tr>
            <tr>
                <th width="20%">项目周期：</th>
                <td  colspan="2">
                   {$li.p_cycle}
                </td>
            </tr>
            <tr>
                <th width="20%">联系人：</th>
                <td  colspan="2">
                   {$li.p_username}
                </td>
            </tr>
            <tr>
                <th width="20%">联系方式：</th>
                <td  colspan="2">
                    {$li.p_phone}
                </td>
            </tr>
            <tr>
                <th width="20%">项目描述：</th>
                <td  colspan="2" style=" text-indent: 2em;">
                    {$li.p_ds}
                </td>
            </tr>
            <tr>
                <th width="20%">项目附件：</th>
                <td  colspan="2">
                    <if condition="$li['p_fly'] eq ''" > 无<else/><a href="/{$li.p_fly}">下载</a></if> 
                </td>
            </tr>
            <tr>
                <th width="20%">审核：</th>
                <td  colspan="2">
                	<if condition="$li['status'] eq '0'" >
                		<label for="tg">通过</label>
	                   <input type="radio" value="1"   id="tg"  name="sh"/>
	                   <label for="btg">驳回</label>
	                   <input type="radio" value="2"  id="btg"  name="sh" />
                	<elseif condition="$li['status'] eq '1'"/>
                	已审核
                	<else/>
                	已驳回</if>
                </td>
            </tr>
            
            <if condition="$li['status'] eq '0'" >
				<tr class="btg">
	                <th width="20%">驳回说明：</th>
	                <td  colspan="2">
	                    <textarea cols="60%" ></textarea>
	                </td>
	            </tr>
            <elseif condition="$li['status'] eq '2'"/>
	            <tr class="btg">
		            <th width="20%">驳回说明：</th>
		            <td  colspan="2">
		                    {$li.off_ds}
		            </td>
		        </tr>
            </if>
       		
        </table>
         <div  class="layer_btn_panel">
         	<input type="hidden" id="pid" value="{$li.id}" />
         	 <if condition="$li['status'] eq '0'" >
            <button class="btn btn-sm btn-success" type="button" id="save">确认审核</button>
 			</if>
             <button class="btn btn-sm btn-default" type="button" onclick="closeIframe(1)" >关闭</button>
         </div>
</div>
<script>
$(function(){
	
	$("#save").click(function(){
		var st=$("input[type=radio]:checked").val();  
		var pid=$("#pid").val();
		if(st==2){
			var con=$("textarea").val();
			if(con==""){
				 layer.msg("驳回请填写驳回说明");
				 return false;
			}
			var data={
				pid:pid,
				st:st,
				con:con
			};
		}else{
			var data={
				pid:pid,
				st:st
			};
		}

		var url="{:U('Project/audit')}";
		$.post(url,data,function(obj){
			if(obj.s){
				layer.msg("审核完毕");
				loadPage();
			}
		})
		
		
		
	})
	
})	
</script>

